<?php
namespace Models\Model;
class UserMedicineOrder
{
	public $user_medicine_order_id;
	public $user_id;
	public $prescription_details;
	public $prescription_upload_path;	
	public $auto_renewal;
	public $each_days;
	public $date_added;
	public $date_updated;
	public $status;
	public function exchangeArray($data){
		$this->user_medicine_order_id       = (isset($data['user_medicine_order_id']))  ? $data['user_medicine_order_id']	: null;
		$this->user_id      				= (isset($data['user_id']))   				? $data['user_id']   	: null;		
		$this->prescription_details  	    = (isset($data['prescription_details']))  	? $data['prescription_details']     : null;		
		$this->prescription_upload_path     = (isset($data['prescription_upload_path']))? $data['prescription_upload_path'] : null;		
		$this->auto_renewal       			= (isset($data['auto_renewal']))  			? $data['auto_renewal'] : null;
		$this->each_days     				= (isset($data['each_days'])) 				? $data['each_days']	: null;
		$this->date_added   				= (isset($data['date_added'])) 				? $data['date_added'] 	: null;
		$this->date_updated  				= (isset($data['date_updated'])) 			? $data['date_updated'] : null;
		$this->status  						= (isset($data['status'])) 					? $data['status'] 		: null;
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}